/**
 * Copyright (c) 2010 Simple Graph Tools contributors. All rights reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * $Id$
 */
package org.sgt.testdef.validation;

import org.eclipse.emf.validation.model.IClientSelector;

/**
 * @author BUTTIGHOFFER-A
 *
 */
//NOTE: This is _NOT_ a recommended approach to writing a client selector.
//Suggested approaches:
//  -Check the resource of the EObject either by identity or by URI
//   as long as this resource is somehow unique to this application
//  -Check the identity of the resource set to ensure that it is some
//   private object
//  -Check the identity of the EObject itself to see if it belongs to
//   some private collection
//  -Check the EClass of the EObject but only if the metamodel is private
//   to this application and will not be used by other contexts
public class ValidationDelegateClientSelector implements IClientSelector {

	public static boolean running = false;
	
	/* (non-Javadoc)
	 * @see org.eclipse.emf.validation.model.IClientSelector#selects(java.lang.Object)
	 */
	public boolean selects(Object object) {
		return running;
	}
}
